package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FStkAccountOldExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FStkAccountOldExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andNewShIsNull() {
            addCriterion("new_sh is null");
            return (Criteria) this;
        }

        public Criteria andNewShIsNotNull() {
            addCriterion("new_sh is not null");
            return (Criteria) this;
        }

        public Criteria andNewShEqualTo(Integer value) {
            addCriterion("new_sh =", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShNotEqualTo(Integer value) {
            addCriterion("new_sh <>", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShGreaterThan(Integer value) {
            addCriterion("new_sh >", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShGreaterThanOrEqualTo(Integer value) {
            addCriterion("new_sh >=", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShLessThan(Integer value) {
            addCriterion("new_sh <", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShLessThanOrEqualTo(Integer value) {
            addCriterion("new_sh <=", value, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShIn(List<Integer> values) {
            addCriterion("new_sh in", values, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShNotIn(List<Integer> values) {
            addCriterion("new_sh not in", values, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShBetween(Integer value1, Integer value2) {
            addCriterion("new_sh between", value1, value2, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewShNotBetween(Integer value1, Integer value2) {
            addCriterion("new_sh not between", value1, value2, "newSh");
            return (Criteria) this;
        }

        public Criteria andNewSzIsNull() {
            addCriterion("new_sz is null");
            return (Criteria) this;
        }

        public Criteria andNewSzIsNotNull() {
            addCriterion("new_sz is not null");
            return (Criteria) this;
        }

        public Criteria andNewSzEqualTo(Integer value) {
            addCriterion("new_sz =", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzNotEqualTo(Integer value) {
            addCriterion("new_sz <>", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzGreaterThan(Integer value) {
            addCriterion("new_sz >", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzGreaterThanOrEqualTo(Integer value) {
            addCriterion("new_sz >=", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzLessThan(Integer value) {
            addCriterion("new_sz <", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzLessThanOrEqualTo(Integer value) {
            addCriterion("new_sz <=", value, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzIn(List<Integer> values) {
            addCriterion("new_sz in", values, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzNotIn(List<Integer> values) {
            addCriterion("new_sz not in", values, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzBetween(Integer value1, Integer value2) {
            addCriterion("new_sz between", value1, value2, "newSz");
            return (Criteria) this;
        }

        public Criteria andNewSzNotBetween(Integer value1, Integer value2) {
            addCriterion("new_sz not between", value1, value2, "newSz");
            return (Criteria) this;
        }

        public Criteria andActiveShIsNull() {
            addCriterion("active_sh is null");
            return (Criteria) this;
        }

        public Criteria andActiveShIsNotNull() {
            addCriterion("active_sh is not null");
            return (Criteria) this;
        }

        public Criteria andActiveShEqualTo(Float value) {
            addCriterion("active_sh =", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShNotEqualTo(Float value) {
            addCriterion("active_sh <>", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShGreaterThan(Float value) {
            addCriterion("active_sh >", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShGreaterThanOrEqualTo(Float value) {
            addCriterion("active_sh >=", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShLessThan(Float value) {
            addCriterion("active_sh <", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShLessThanOrEqualTo(Float value) {
            addCriterion("active_sh <=", value, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShIn(List<Float> values) {
            addCriterion("active_sh in", values, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShNotIn(List<Float> values) {
            addCriterion("active_sh not in", values, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShBetween(Float value1, Float value2) {
            addCriterion("active_sh between", value1, value2, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveShNotBetween(Float value1, Float value2) {
            addCriterion("active_sh not between", value1, value2, "activeSh");
            return (Criteria) this;
        }

        public Criteria andActiveSzIsNull() {
            addCriterion("active_sz is null");
            return (Criteria) this;
        }

        public Criteria andActiveSzIsNotNull() {
            addCriterion("active_sz is not null");
            return (Criteria) this;
        }

        public Criteria andActiveSzEqualTo(Float value) {
            addCriterion("active_sz =", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzNotEqualTo(Float value) {
            addCriterion("active_sz <>", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzGreaterThan(Float value) {
            addCriterion("active_sz >", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzGreaterThanOrEqualTo(Float value) {
            addCriterion("active_sz >=", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzLessThan(Float value) {
            addCriterion("active_sz <", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzLessThanOrEqualTo(Float value) {
            addCriterion("active_sz <=", value, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzIn(List<Float> values) {
            addCriterion("active_sz in", values, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzNotIn(List<Float> values) {
            addCriterion("active_sz not in", values, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzBetween(Float value1, Float value2) {
            addCriterion("active_sz between", value1, value2, "activeSz");
            return (Criteria) this;
        }

        public Criteria andActiveSzNotBetween(Float value1, Float value2) {
            addCriterion("active_sz not between", value1, value2, "activeSz");
            return (Criteria) this;
        }

        public Criteria andTotalShIsNull() {
            addCriterion("total_sh is null");
            return (Criteria) this;
        }

        public Criteria andTotalShIsNotNull() {
            addCriterion("total_sh is not null");
            return (Criteria) this;
        }

        public Criteria andTotalShEqualTo(Float value) {
            addCriterion("total_sh =", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShNotEqualTo(Float value) {
            addCriterion("total_sh <>", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShGreaterThan(Float value) {
            addCriterion("total_sh >", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShGreaterThanOrEqualTo(Float value) {
            addCriterion("total_sh >=", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShLessThan(Float value) {
            addCriterion("total_sh <", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShLessThanOrEqualTo(Float value) {
            addCriterion("total_sh <=", value, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShIn(List<Float> values) {
            addCriterion("total_sh in", values, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShNotIn(List<Float> values) {
            addCriterion("total_sh not in", values, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShBetween(Float value1, Float value2) {
            addCriterion("total_sh between", value1, value2, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalShNotBetween(Float value1, Float value2) {
            addCriterion("total_sh not between", value1, value2, "totalSh");
            return (Criteria) this;
        }

        public Criteria andTotalSzIsNull() {
            addCriterion("total_sz is null");
            return (Criteria) this;
        }

        public Criteria andTotalSzIsNotNull() {
            addCriterion("total_sz is not null");
            return (Criteria) this;
        }

        public Criteria andTotalSzEqualTo(Float value) {
            addCriterion("total_sz =", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzNotEqualTo(Float value) {
            addCriterion("total_sz <>", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzGreaterThan(Float value) {
            addCriterion("total_sz >", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzGreaterThanOrEqualTo(Float value) {
            addCriterion("total_sz >=", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzLessThan(Float value) {
            addCriterion("total_sz <", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzLessThanOrEqualTo(Float value) {
            addCriterion("total_sz <=", value, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzIn(List<Float> values) {
            addCriterion("total_sz in", values, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzNotIn(List<Float> values) {
            addCriterion("total_sz not in", values, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzBetween(Float value1, Float value2) {
            addCriterion("total_sz between", value1, value2, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTotalSzNotBetween(Float value1, Float value2) {
            addCriterion("total_sz not between", value1, value2, "totalSz");
            return (Criteria) this;
        }

        public Criteria andTradeShIsNull() {
            addCriterion("trade_sh is null");
            return (Criteria) this;
        }

        public Criteria andTradeShIsNotNull() {
            addCriterion("trade_sh is not null");
            return (Criteria) this;
        }

        public Criteria andTradeShEqualTo(Float value) {
            addCriterion("trade_sh =", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShNotEqualTo(Float value) {
            addCriterion("trade_sh <>", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShGreaterThan(Float value) {
            addCriterion("trade_sh >", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShGreaterThanOrEqualTo(Float value) {
            addCriterion("trade_sh >=", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShLessThan(Float value) {
            addCriterion("trade_sh <", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShLessThanOrEqualTo(Float value) {
            addCriterion("trade_sh <=", value, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShIn(List<Float> values) {
            addCriterion("trade_sh in", values, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShNotIn(List<Float> values) {
            addCriterion("trade_sh not in", values, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShBetween(Float value1, Float value2) {
            addCriterion("trade_sh between", value1, value2, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeShNotBetween(Float value1, Float value2) {
            addCriterion("trade_sh not between", value1, value2, "tradeSh");
            return (Criteria) this;
        }

        public Criteria andTradeSzIsNull() {
            addCriterion("trade_sz is null");
            return (Criteria) this;
        }

        public Criteria andTradeSzIsNotNull() {
            addCriterion("trade_sz is not null");
            return (Criteria) this;
        }

        public Criteria andTradeSzEqualTo(Float value) {
            addCriterion("trade_sz =", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzNotEqualTo(Float value) {
            addCriterion("trade_sz <>", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzGreaterThan(Float value) {
            addCriterion("trade_sz >", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzGreaterThanOrEqualTo(Float value) {
            addCriterion("trade_sz >=", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzLessThan(Float value) {
            addCriterion("trade_sz <", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzLessThanOrEqualTo(Float value) {
            addCriterion("trade_sz <=", value, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzIn(List<Float> values) {
            addCriterion("trade_sz in", values, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzNotIn(List<Float> values) {
            addCriterion("trade_sz not in", values, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzBetween(Float value1, Float value2) {
            addCriterion("trade_sz between", value1, value2, "tradeSz");
            return (Criteria) this;
        }

        public Criteria andTradeSzNotBetween(Float value1, Float value2) {
            addCriterion("trade_sz not between", value1, value2, "tradeSz");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}